import request from '@/utils/request'

// 查询专题
export function subjectList(data) {
  return request({
    url:  '/subject/list',
    method: 'Post',
    data,
  })
}

// 增加专题
export function addSubject(data) {
  return request.request({
    url: '/subject',
    method: 'POST',
    data,
  })
}

// 删除专题
export function delSubject(url) {
  return request.request({
    url: '/subject/'+url,
    method: 'DELETE'
  })
}

// 修改专题
export function editSubject(data) {
  return request.request({
    url: '/subject/edit',
    method: 'POST',
    data,
  })
}